using System;
using System.Collections.Generic;
using System.Text;

namespace SqlTools.CodeGenerator.Data
{
	/// <summary>
	/// Will be used to hold table information before rejoin tables
	/// </summary>
	public class TempTable : Table
	{
		public TempTable(Project project) : this(project, "", "") { }

		public TempTable(Project project, string tableName)
			: this(project, tableName, tableName) { }

		public TempTable(Project project, string tableName, string objectName)
			: base(project, tableName, objectName) { }

		public TempTable(Table table)
			: base (null, table.TableName, table.BusinessObjectName)
		{
			
		}

		public override void SaveXml(System.Xml.XmlDocument doc, System.Xml.XmlElement parent)
		{
			throw new NotImplementedException("TempTable should not be used for serialization");
		}

		protected override System.Xml.XmlElement CreateXmlElement(System.Xml.XmlDocument doc)
		{
			throw new NotImplementedException("TempTable should not be used for serialization");
		}

		public override void LoadXml(System.Xml.XmlElement xmlTable)
		{
			throw new NotImplementedException("TempTable should not be used for serialization");
		}
	}
}
